package rs.dalao.syc.passport.service;

import org.springframework.transaction.annotation.Transactional;
import rs.dalao.syc.common.pojo.authentication.CurrentPrincipal;
import rs.dalao.syc.passport.pojo.param.DoctorRegParam;
import rs.dalao.syc.passport.pojo.param.UserLoginInfoParam;
import rs.dalao.syc.passport.pojo.param.UserRegParam;
import rs.dalao.syc.passport.pojo.vo.LoginRegVO;
import rs.dalao.syc.passport.pojo.vo.UserLoginResultVO;
@Transactional//开启事务
public interface IUserService {
    //用户注册
    int userReg(UserRegParam userRegParam);

    //获取验证码
    int getCode(String phone);

    //医生注册
    int doctorReg(DoctorRegParam doctorRegParam);

    //用户登录
    UserLoginResultVO login(UserLoginInfoParam userLoginInfoParam, String remoteAddr, String userAgent);

    //用户登出
    void logout(CurrentPrincipal currentPrincipal);
}
